﻿using System.Runtime.Serialization;

using Cookbook.Services.Core.Commanding;

namespace Cookbook.Services.Core.Commands
{
    [DataContract]
    public abstract class VersionedCommand : Command
    {
        [DataMember(IsRequired = true)]
        public long Id { get; set; }

        [DataMember(IsRequired = true)]
        public long Version { get; set; }
    }
}